package com.example.exam.sysResource.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class SysResourceBean implements Serializable {

	private static final long serialVersionUID = 1L;

	// 资源ID
	private Integer id;
	// 资源名称
	private String name;
	// 资源访问路径
	private String url;
	// 资源描述
	private String descr;
	// 权限标志
	private String permission;
	// 父级菜单id
	private Integer pid;
	// 排序值
	private Integer seq;
	// 图标
	private String icon;
	// 资源类别1：一级菜单 2：二级菜单
	private Integer type;
	// 1正常, -1删除, 2不可用
	private Integer status;
	// 创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-8")
	private Date createTime;
	// 创建人
	private Integer createUser;

	private List<SysResourceBean> cMenuList;

	private Integer isQuick;
	//快捷按钮背景色控制
	private String bgColor;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public String getDescr() {
		return descr;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getPermission() {
		return permission;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getPid() {
		return pid;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	public Integer getCreateUser() {
		return createUser;
	}

	// 资源是否存在
	private Integer resExit;
	// 资源的父级是否存在
	private Integer resParentExit;
	// 权限列表
	// private List<SysPermissionBean> listPermission;

	public List<SysResourceBean> getcMenuList() {
		return cMenuList;
	}

	public void setcMenuList(List<SysResourceBean> cMenuList) {
		this.cMenuList = cMenuList;
	}

	public Integer getResExit() {
		return resExit;
	}

	public void setResExit(Integer resExit) {
		this.resExit = resExit;
	}

	public Integer getResParentExit() {
		return resParentExit;
	}

	public void setResParentExit(Integer resParentExit) {
		this.resParentExit = resParentExit;
	}

	public Integer getIsQuick() {
		return isQuick;
	}

	public void setIsQuick(Integer isQuick) {
		this.isQuick = isQuick;
	}

	public String getBgColor() {
		return bgColor;
	}

	public void setBgColor(String bgColor) {
		this.bgColor = bgColor;
	}


}
